//
//  UIButton+setImage.m
//  微博
//
//  Created by mh on 16/3/22.
//  Copyright © 2016年 mh. All rights reserved.
//

#import "UIButton+setImage.h"

@implementation UIButton (setImage)

- (void)setImage:(NSString *)image andHighlightedImage:(NSString *)highlightImage{
    [self setImage:[UIImage imageNamed:image] forState:UIControlStateNormal];
    [self setImage:[UIImage imageNamed:highlightImage] forState:UIControlStateHighlighted];
}

- (void)setBackgroundImage:(NSString *)image andBackgroundHighlightedImage:(NSString *)highlightImage{
    [self setBackgroundImage:[UIImage imageNamed:image] forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage imageNamed:highlightImage] forState:UIControlStateHighlighted];
}

- (void)setImage:(NSString *)image andSeletedImage:(NSString *)seletedImage{
    [self setImage:[UIImage imageNamed:image] forState:UIControlStateNormal];
    [self setImage:[UIImage imageNamed:seletedImage] forState:UIControlStateSelected];
}
@end
